package top.yxf.gulimall.member.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import top.yxf.common.utils.PageUtils;
import top.yxf.common.utils.Query;

import top.yxf.gulimall.member.dao.MemberLevelDao;
import top.yxf.gulimall.member.entity.MemberLevelEntity;
import top.yxf.gulimall.member.service.MemberLevelService;


/**
 * @Author yixiangfeng
 * @ClassName MemberLevelServiceImpl
 * @Description 会员等级业务
 * @CreateTime  下午7:36
 **/
@Service("memberLevelService")
public class MemberLevelServiceImpl extends ServiceImpl<MemberLevelDao, MemberLevelEntity> implements MemberLevelService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        try {
            IPage<MemberLevelEntity> page = this.page(
                    new Query<MemberLevelEntity>().getPage(params),
                    new QueryWrapper<MemberLevelEntity>()
            );

            return new PageUtils(page);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return null;
    }

}